﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Apollo
{
    public class BaseModule : IModule
    {
        public BaseModule() {}

        public virtual void OnInit(Application app) 
        {

        }

        public virtual ActionSubscription PrepareAction(string actionName, object obj)
        {
            return null;
        }

        public virtual EditActionSubscription PrepareEditAction()
        {
            return null;
        }

        public virtual bool IsAllowed(string actionName, Entity entity, object obj)
        {
            return true;
        }

        public virtual ActionContext Save(object obj)
        {
            return null;
        }

        public virtual ActionContext Delete(object obj)
        {
            return null;
        }

        public virtual ActionContext DoAction(string actionName, object obj)
        {
            return null;
        }
    }
}
